package com.wfx.controller;


import com.wfx.entity.Result;
import com.wfx.entity.ViewGoodsCustomer;
import com.wfx.service.IViewGoodsCustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * VIEW 前端控制器
 * </p>
 *
 * @author zhu
 * @since 2021-01-28
 */
@RestController
@RequestMapping("/viewCustomer")
@CrossOrigin
public class ViewGoodsCustomerController {
    @Autowired
    private IViewGoodsCustomerService iViewGoodsCustomerService;
    @RequestMapping("/findCustomer")
    public Result<ViewGoodsCustomer> findCustomer(String goodsId){
        return iViewGoodsCustomerService.findCustomer(goodsId);
    }
}
